@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    overflow-x: hidden;
}

/* ==========================
   HEADER FIJO Y TRANSPARENTE
========================== */

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.662);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0 10px 30px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.427);
    margin: 0;
    transition: all .3s ease;
}

/* ==========================
   LOGO
========================== */

.logo-container {
    padding-top: 10px;
    flex-shrink: 0;
}

.logo-container img {
    height: 90px;
    width: auto;
    display: block;
}

/* ==========================
   CONTENEDOR NAVEGACIÓN
========================== */

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

/* ==========================
   MENÚ SUPERIOR
========================== */

.top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.top-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links li:not(:last-child)::after {
    content: "|";
    color: #000000;
    margin: 0 10px;
    font-size: 13px;
}

.top-links a {
    text-decoration: none;
    color: #009640;
    font-size: 16px;
    font-weight: 900;
    transition: .3s;
}

.top-links a:hover {
    text-decoration: underline;
}

/* ==========================
   BOTÓN SUPERIOR
========================== */

.top-buttons {
    display: flex;
    margin-left: 20px;
    margin-right: 30px;
}

.top-buttons .btn-green {
    padding: 8px 6px;
    font-size: 17px;
    border-radius: 3px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    transition: .3s;
}

.btn:hover {
    opacity: .8;
}

.btn-green {
    background-color: #008738;
    padding-right: 60px;
}

/* ==========================
   MENÚ PRINCIPAL
========================== */

.navigation {
    padding-right: 70px;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation > ul > li {
    float: left;
    position: relative;
}

.navigation ul li a {
    display: block;
    padding: 5px 16px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: .3s;
}

.navigation ul li a:hover {
    color: #009640;
    background: transparent;
}

/* ==========================
   SUBMENÚS PC
========================== */

.navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    background: rgba(255,255,255,.97);
    display: none;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
    z-index: 100;
}

.navigation ul li:hover > ul {
    display: block;
}

.navigation ul li ul li {
    width: 100%;
}

.navigation ul li ul li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
}

.navigation ul li ul li a:hover {
    background: #f5f5f5;
    color: #009640;
}

/* ==========================
   BOTÓN MENÚ MÓVIL
   OCULTO EN PC
========================== */

.mobile-menu-button {
    display: none;
}

/* ==========================
   MENÚ MÓVIL
========================== */

@media screen and (max-width: 768px) {

    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    /* HEADER */
    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 70px;
        height: 70px;
        padding: 5px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255,255,255,.97);
        z-index: 99999;
    }

    /* LOGO */
    .logo-container {
        padding-top: 0;
        flex-shrink: 0;
    }

    .logo-container img {
        height: 58px;
        width: auto;
        max-width: 75px;
        display: block;
    }

    /* BOTÓN */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        margin-left: auto;
        border: none;
        border-radius: 5px;
        background: #008738;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        z-index: 100001;
    }

    .mobile-menu-button:hover {
        background: #006f2e;
    }

    /* ==========================
       MENÚ CERRADO
    ========================== */

    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,.15);
        z-index: 100000;
    }

    /* ==========================
       MENÚ ABIERTO
    ========================== */

    .nav-wrapper.menu-open {
        display: flex;
    }

    /* ==========================
       MENÚ SUPERIOR
    ========================== */

    .top-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .top-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .top-links li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .top-links li:not(:last-child)::after {
        display: none;
    }

    .top-links a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        color: #009640;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    /* ==========================
       COMPRAS EN LÍNEA
    ========================== */

    .top-buttons {
        display: block;
        width: 100%;
        margin: 12px 0;
    }

    .top-buttons .btn-green {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
    }

    /* ==========================
       MENÚ PRINCIPAL
    ========================== */

    .navigation {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navigation > ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .navigation > ul > li {
        float: none;
        position: relative;
        width: 100%;
        border-top: 1px solid #ddd;
    }

    .navigation ul li a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }

    .navigation ul li a:hover {
        color: #009640;
    }

    /* ==========================
       SUBMENÚS MÓVIL
    ========================== */

    .navigation ul li ul {
        position: static;
        display: block;
        width: 100%;
        background: #f5f5f5;
        box-shadow: none;
    }

    .navigation ul li ul li {
        width: 100%;
    }

    .navigation ul li ul li a {
        padding: 10px 20px;
        font-size: 14px;
        color: #555;
        border-top: 1px solid #e5e5e5;
    }

    .navigation ul li ul li a:hover {
        background: #eee;
        color: #009640;
    }
}

/* ==========================
   CELULARES PEQUEÑOS
========================== */

@media screen and (max-width: 480px) {

    body {
        padding-top: 65px;
    }

    .header-container {
        min-height: 65px;
        height: 65px;
        padding: 5px 12px;
    }

    .logo-container img {
        height: 52px;
        max-width: 68px;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .nav-wrapper {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 12px;
    }
}

/* SLIDER */
.slider{
    margin-top:68px;
    width:100%;
    height:400px;
    position:relative;
    overflow:hidden;
}

.slider img{
    position:absolute;
    width:100%;
    height: 95%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.5s ease;
}

.slider img.activa{
    opacity:1;
}

.slider-gerentes {
    margin-top:68px;
    width:100%;
    height:400px;
    position:relative;
    overflow:hidden;
}

.slider-gerentes img{
    position:absolute;
    width:100%;
    height: 95%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.5s ease;
}

.slider-gerentes img.activa{
    opacity:1;
}

/* FOOTER MODIFICADO */
.footer{
    width:100%;
    background:#1e1e1e; /* El color oscuro de fondo */
    display:flex;
    justify-content:space-between; /* Distribuye las 3 columnas horizontalmente */
    align-items:flex-start;       /* Alinea los textos arriba */
    padding:60px 80px 40px 80px;  /* Espaciado generoso */
    color:#b3b3b3;                /* Color gris suave para los textos */
    margin-top:auto;
    gap: 40px;
}

/* Títulos H3 globales del Footer */
.footer h3, .footer-info h3, .footer-enlaces h3, .footer-redes h3 {
    color:#ffffff;                /* Blanco limpio para los títulos */
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Párrafos globales dentro del Footer */
.footer p, .footer-info p, .footer-enlaces p, .footer-redes p {
    font-size:15px;
    line-height:1.8;
    color: #b3b3b3;
    margin-bottom: 8px;
}

/* Columna 1: Horario */
.footer-info{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

.footer-info img{
    display: none;                /* Remueve la imagen vieja de esta sección */
}

/* Columna 2: Teléfono */
.footer-enlaces{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

/* Columna 3: Dirección */
.footer-redes{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Barra inferior de Redes sociales */
.iconos img{
    width:25px;
    height:25px;
    filter:brightness(0) invert(1); /* Convierte los iconos oscuros en blancos */
    transition:.3s;
}

.iconos img:hover{
    transform:scale(1.2);
}


/* RESPONSIVE CORREGIDO */
@media(max-width:950px){

.header{
    padding:15px 20px;
}

.header label{
    display:block;
}

.navigation{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    display:none;
}

.navigation > ul > li{
    width:100%;
    float:none;
}

.navigation ul li ul{
    position:relative;
    width:100%;
}

#toggle:checked ~ .navigation{
    display:block;
}

.slider{
    height:250px;
}

.servicios{
    flex-direction:column;
    width:90%;
}

.tarjeta{
    width:100%;
}

.tarjeta img{
    height:260px;
}

.titulo{
    font-size:22px;
}

/* El footer se vuelve una lista vertical en celulares */
.footer{
    flex-direction:column;
    gap:35px;
    text-align: left;
    padding:40px 30px;
}

.footer-info, .footer-enlaces, .footer-redes{
    flex-direction:column;
    align-items: flex-start;
}

/* Ajuste para la barra inline del HTML en móvil */
div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
    padding: 20px 30px !important;
}

}


/* Tablet */

@media(max-width:992px){

    .directivos{
        grid-template-columns:repeat(2,1fr);
    }

    .persona h3{
        font-size:24px;
    }

    .persona p{
        font-size:18px;
    }

}

/* Móvil */

@media(max-width:576px){

    .directivos{
        grid-template-columns:1fr;
        gap:25px;
    }

    .persona{
        text-align:center;
    }

    .persona h3{
        font-size:22px;
    }

    .persona p{
        font-size:16px;
    }

}




/* ==========================
   CONTENEDOR PRINCIPAL
========================== */

.container{
    width:90%;
    max-width:1300px;
    margin:50px auto;
    padding:50px 60px;
    background:transparent;
}

/* ==========================
   ENCABEZADO
========================== */

header{
    text-align:center;
    border-bottom:2px solid #006633;
    padding-bottom:20px;
    margin-bottom:40px;
}

header h1{
    color:#006633;
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.subtitle{
    color:#070707;
    font-size:22px;
}

/* ==========================
   INTRODUCCIÓN
========================== */

.intro-box{
    text-align: justify;
    background:#16e00327;
    border-left:6px solid #006633;
    padding:25px 30px;
    margin:40px 0;
    border-radius:8px;
    font-size:18px;
}

/* ==========================
   TÍTULOS
========================== */

h2{
    font-size:40px;
    font-weight:300;
    color:#006115;
    margin-top:60px;
    margin-bottom:20px;
}

h3{
    color:#006633;
    margin-bottom:10px;
}

hr.divider{
    border:none;
    height:1px;
    background:#ddd;
    margin:25px 0;
}

/* ==========================
   LISTAS
========================== */

.custom-list{
    list-style:none;
    padding-left:0;
}

.custom-list li{
    text-align: justify;
    margin-bottom:18px;
    padding-left:25px;
    position:relative;
    font-size:22px;
}

.custom-list li::before{
    content:"•";
    position:absolute;
    left:0;
    color:#006633;
    font-size:22px;
}

.custom-list strong{
    color:#111;
}

/* ==========================
   TARJETAS
========================== */

.cards-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 5px;
    align-items: stretch;
}

.card{
    background: #fff;
    border: 10px solid #0d8509;
    border-radius: 1px;
    padding: 25px;
    transition: .3s;
    height: 100%;
}

.card:hover{
    transform: translateY(-5px);
    border-color: #006633;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Tablets */
@media (max-width: 992px){
    .cards-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares */
@media (max-width: 576px){
    .cards-grid{
        grid-template-columns: 1fr;
    }
}

/* ==========================
   PIE
========================== */

footer{
    margin-top:60px;
    padding-top:20px;
    border-top:1px solid #ddd;
    color:#888;
    font-size:15px;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:768px){

.container{
    width:95%;
    padding:30px;
}

header h1{
    font-size:32px;
}

.subtitle{
    font-size:18px;
}

h2{
    font-size:32px;
}

.custom-list li{
    font-size:16px;
}

}

.dividir {
    margin-bottom: 20px;
}

.foto {
    margin: 0 auto;
    width: 30%;
    display: block;
    border-radius: 10px;
}